<!DOCTYPE html>
<html>
<head>
    <title>Redis-MySQL Demo</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
    <style>
        .timing-info {
            font-size: 0.9em;
            color: #666;
            margin-top: 10px;
        }
        .source-badge {
            font-size: 0.8em;
            padding: 3px 8px;
            margin-left: 10px;
        }
        .redis-badge {
            background-color: #dc3545;
            color: white;
        }
        .mysql-badge {
            background-color: #0d6efd;
            color: white;
        }
        .flow-diagram {
            margin: 20px 0;
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: 5px;
            position: relative;
            height: 300px;
        }
        .flow-node {
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            min-width: 120px;
        }
        .flow-node i {
            font-size: 24px;
            margin-bottom: 8px;
        }
        .cache-status {
            font-size: 12px;
            margin-top: 5px;
            font-weight: bold;
        }
        .flow-dot {
            width: 24px;
            height: 24px;
            background: #fff;
            border-radius: 50%;
            position: absolute;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        .flow-lines path {
            stroke-dasharray: 5,5;
            animation: dash 20s linear infinite;
        }
        @keyframes dash {
            to {
                stroke-dashoffset: 1000;
            }
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-dark bg-dark">
        <div class="container">
            <a class="navbar-brand" href="/">Redis-MySQL Demo</a>
        </div>
    </nav>
    <div class="container mt-4">
        {% block content %}{% endblock %}
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html> 